 package com.yangguo.code.generator.controller;

 import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSONObject;

 @RestController
 public class QuUploadController {

     /**
      * 朝阳静态数据
      * 
      * @param data
      * @return
      */
     @GetMapping("/chaoyang/api/v1/token")
     public String cyToken(@RequestParam("appid") String appid, @RequestParam("secret") String secret,
         @RequestParam("sign") String sign) {
         JSONObject result = new JSONObject();
         result.put("rtn", 0);
         result.put("message", "成功");
         result.put("token",
             "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9eyJleHAiOjE2NTI4NjE3MDAsImlhdCI6MTY1Mjg1ODEwMCwidXNlcm5hbWUiOiIxIn0.EGWVVscucIUcVhTvWXqdCIQ61Otl7o5Q1Cy6j9cpP7k");
         return result.toJSONString();
     }

     /**
      * 朝阳静态数据
      * 
      * @param data
      * @return
      */
     @PostMapping("/chaoyang/api/v1/parklot")
     public String cyParklot(@RequestBody String data) {
         JSONObject result = new JSONObject();
         result.put("rtn", 0);
         result.put("message", "成功");
         return result.toJSONString();
     }

     /**
      * 朝阳动数据
      * 
      * @param data
      * @return
      */
     @PostMapping("/chaoyang/api/v1/vehicle")
     public String cyVehicle(@RequestBody String data) {
         JSONObject result = new JSONObject();
         result.put("rtn", 0);
         result.put("message", "成功");
         return result.toJSONString();
     }

     /**
      * 海淀静态数据
      * 
      * @param data
      * @return
      */
     @PostMapping("/haidian/api/v1/parklot")
     public String hdParklot(@RequestBody String data) {
         JSONObject result = new  JSONObject();
         result.put("rtn", 0);
         result.put("message", "成功");
         return result.toJSONString();
     }

     /**
      * 海淀动数据
      * 
      * @param data
      * @return
      */
     @PostMapping("/haidian/api/v1/vehicle")
     public String hdVehicle(@RequestBody String data) {
         JSONObject result = new JSONObject();
         result.put("rtn", 0);
         result.put("message", "成功");
         return result.toJSONString();
     }

}
